﻿using System;
using System.Collections.Generic;
using System.Text;

using ZoneFiveSoftware.Common.Visuals;
using ZoneFiveSoftware.Common.Visuals.Fitness;

namespace SportTracksSwimSetPlugin.Settings
{
    class SwimSetSettingsPage : ISettingsPage
    {
        public Guid Id
        {
            get 
            { 
                Plugin swimSetPlugin = new Plugin();
                return swimSetPlugin.Id;
            }
        }

        public IList<ISettingsPage> SubPages
        {
            get { return null; }
        }

        public System.Windows.Forms.Control CreatePageControl()
        {
            if (control == null)
            {
                control = new SwimSetSettingsControl();
            }

            return control;
        }

        public bool HidePage()
        {
            return true;
        }

        public string PageName
        {
            get { return Title; }
        }

        public void ShowPage(string bookmark)
        {
        }

        public IPageStatus Status
        {
            get { return null; }
        }

        public void ThemeChanged(ITheme visualTheme)
        {
            if (control != null)
            {
                control.ThemeChanged(visualTheme);
            }
        }

        public string Title
        {
            get { return "Swim Set Settings"; }
        }

        public void UICultureChanged(System.Globalization.CultureInfo culture)
        {
            if (control != null)
            {
                control.UICultureChanged(culture);
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        private SwimSetSettingsControl control = null;
    }
}
